package com.luoshi.common.exception.ucenter;

import com.luoshi.common.result.ResultCodeEnum;
import io.swagger.annotations.ApiModelProperty;

/**
 * @ClassName RegisterException
 * @Description:注册失败
 * @Author luochangqin
 * @Date 2021/6/18
 * @Version V1.0
 **/
public class RegisterException extends RuntimeException{

    @ApiModelProperty(value = "响应异常代码")
    private Integer code;

    public RegisterException(ResultCodeEnum resultCodeEnum){
        super(resultCodeEnum.getMessage());
        this.code = resultCodeEnum.getCode();
    }
}
